<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<head>
<title>IGNORED</title>
</head>
<body>
	<ui:composition template="/WEB-INF/layouts/base-layout.xhtml">
		<ui:define name="windowTitle">
			User Management
		</ui:define>

		<ui:define name="content">
 		list users page.
 		
 			<h:form>
				<p:dataTable var="user" value="#{userBean.users}" style="width:200px;">

					<f:facet name="header">
						Users and Roles
					</f:facet>

					<p:subTable var="role" value="#{user.roles}">
						<f:facet name="header">  
           					  #{user.userName}
            			</f:facet>
						<p:column>
							<p:outputLabel value="#{role.roleName}" />
						</p:column>
					</p:subTable>

				</p:dataTable>
			</h:form>

		</ui:define>
	</ui:composition>
</body>
</html>